package shop.app.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>Title: HomeController</p>
 *
 * @author wjv
 * @date 2020/11/24 11:42
 * @description HomeController
 */
@RestController
public class HomeController {
    static final Logger logger = LoggerFactory.getLogger(HomeController.class);

    @GetMapping(path = "/home/index")
    public String index() {
        logger.info("info...");
        logger.debug("debug...");
        logger.error("error...");
        return "hello, spring-boot app v1";
    }
}
